package top.loveyumin1314.music.bean;


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * author Kerry
 * date 2017/10/10
 * desp null
 */

public class SessionBean extends BaseBean {


    @JsonProperty("userName")
    private String userName;

    public SessionBean() {

    }

    public SessionBean(String userId, String userName) {
        this.userId = userId;
        this.userName = userName;
        this.time = System.currentTimeMillis();
    }


    public SessionBean(String userId, String userName, long lastActiveTme) {
        this.userId = userId;
        this.userName = userName;
        this.time = lastActiveTme;
    }

    @JsonIgnore
    public String getUserName() {
        return userName;
    }

    @JsonIgnore
    public void setUserName(String userName) {
        this.userName = userName;
    }


}